<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>

        div {
            perspective: 500px;
            width: 200px;
            height: 200px;
            /* background-color: pink; */
            margin: 200px auto;
        }
        img {
            transition: all 0.4s;
            animation: move 3s linear infinite;
        }
        /* img:hover {
            transform: rotateY(45deg);
            
        } */
        @keyframes move {
            0% {

            }
            100% {
                transform: rotate3d(1, 1, 0, 360deg);

            }
        }
    </style>
</head>
<body>
    <div>
        <img src="media/pig.jpg" alt="">
    </div>
</body>
</html>